<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>
        修改申请单选择配件
    </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../../css/main.css" media="all">
    <script type="text/javascript" src="../../../../lib/loading/okLoading.js"></script>
    <link rel="stylesheet" href="../../../../lib/layui/css/layui_2.5.7.css">

</head>

<style>

</style>

<body>
<div class="x-nav">
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon"
                                                                        style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body" id="app" >
    <form class="layui-form layui-form-pane" id="add">
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">

                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 30%"> <span class='x-red'>*</span>数量</label>
                    <div style="width: 70%" class="layui-input-inline">
                        <input  autocomplete="off"  lay-filter="partsNumber" type="number" name="partsNumber"
                               lay-verify="required" min="0" placeholder="数量" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 30%">配件指导单价</label>
                    <div style="width: 70%" class="layui-input-inline">
                        <input  autocomplete="off"  lay-filter="guideprice" name="guideprice"
                                placeholder="配件指导单价" v-model="quotation.guideprice" class="layui-input" disabled="disabled">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 30%"> <span class='x-red'>*</span>配件总报价</label>
                    <div style="width: 70%" class="layui-input-inline">
                        <input  autocomplete="off"  lay-filter="allGuideprice" type="number" name="allGuideprice"
                               lay-verify="required" min="0" placeholder="配件总报价" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 30%">安装指导单价</label>
                    <div style="width: 70%" class="layui-input-inline">
                        <input  autocomplete="off"  lay-filter="installPrice" name="installPrice"
                               placeholder="安装指导单价" v-model="quotation.installPrice" class="layui-input" disabled="disabled">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 30%"> <span class='x-red'>*</span>安装总报价</label>
                    <div style="width: 70%" class="layui-input-inline">
                        <input  autocomplete="off"  lay-filter="installAllprice" type="number" name="installAllprice"
                               lay-verify="required" min="0" placeholder="安装总报价" class="layui-input">
                    </div>
                </div>

            </div>
        </div>

    </form>
</div>
<script type="text/javascript" src="../../../../js/jquery.min.js"></script>
<script type="text/javascript" src="../../../../js/myAjax.js"></script>
<script type="text/javascript" src="../../../../js/pub.js"></script>
<script src="../../../../lib/layui/layui2.5.7.js" charset="utf-8"></script>
<script src="../../../../js/x-layui.js" charset="utf-8"></script>
<script src="../../../../js/vue.min.js" charset="utf-8"></script>

<script>
    layui.use(['element', 'layer', 'form', 'laydate'], function () {
        $ = layui.jquery;//jquery
        lement = layui.element();//面包导航
        layer = layui.layer;//弹出层
        laydate = layui.laydate;//日期插件
        form = layui.form;
        okLoading.close($);
    })

</script>
<script>

    $(function () {
        var parse = JSON.parse(localStorage.getItem('quotation_edit_parts'));
        $("input[name=partsNumber]").val(parse.partsNumber);
        $("input[name=guideprice]").val(parse.guideprice);
        $("input[name=allGuideprice]").val(parse.allGuideprice);
        $("input[name=installPrice]").val(parse.installPrice);
        $("input[name=installAllprice]").val(parse.installAllprice);


        $("input[name=partsNumber]").on("input", function (e) {
            parse.partsNumber = e.delegateTarget.value;
            localStorage.setItem('quotation_edit_parts', JSON.stringify(parse))
        });

        $("input[name=allGuideprice]").on("input", function (e) {
            parse.allGuideprice = e.delegateTarget.value;
            localStorage.setItem('quotation_edit_parts', JSON.stringify(parse))
        });

        $("input[name=installAllprice]").on("input", function (e) {
            parse.installAllprice = e.delegateTarget.value;
            localStorage.setItem('quotation_edit_parts', JSON.stringify(parse))
        });
    });



</script>

</body>

</html>
